<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SLU 
 * All portions are Copyright (C) 2009-2011 Openbravo SLU 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Audit Trail - Record History</title>
<link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"/>

<script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/djConfig.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/dojotoolkit/dojo/dojo.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/djDependencies.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
<script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>


<script language="JavaScript" type="text/javascript" id="paramDirectory"></script>
<script language="JavaScript" type="text/javascript" id="paramLanguage"></script>

<script language="JavaScript" type="text/javascript">
  function validate() {
    return true;
  }
</script>
<script language="JavaScript" type="text/javascript" id="selectedColumn">
  var selectedRow = 0;
  var orderByPositions = ["1"];
  var orderByDirections = ["DESC"];
</script>
<script language="JavaScript" type="text/javascript" id="jsFocusOnField">
function focusOnField() {
	setWindowElementFocus('tad_id', 'id');
	return true;
}
</script>
<script language="JavaScript" type="text/javascript">
  
  function onLoadDo(){
    this.windowTables = [
      new windowTableId('client_top', 'buttonSearch'),
      new windowTableId('client_middle', 'buttonClose'),
      new windowTableId('client_bottom', 'buttonClose')
    ];
    setWindowTableParentElement();
    enableShortcuts('popup');
    setBrowserAutoComplete(false);

    try {
      onloadFunctions();
    } catch (e) {}

    focusOnField();
    resizeAreaInfo();
  }

  function onResizeDo(){
    resizeAreaInfo(true);
  }

  function validateSelector(action) {
    return false;
  }
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
<form name="frmAudit" method="post" action="AuditTrail.html">
  <input type="hidden" name="Command" />
	<input type="hidden" name="IsPopUpCall" value="1"/>
  <input type="hidden" name="inpWindowId" value="" id="fieldWindowID"/> 
  <div class="Popup_ContentPane_CircleLogo">
    <div class="Popup_WindowLogo">
      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_auditTrail" src="../../../../../web/images/blank.gif" border="0" alt=""/>
    </div>
  </div>
  <table cellspacing="0" cellpadding="0" width="100%" id="table_header">
    <tr>
      <td>
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
          <tr class="Popup_NavBar_bg"><td></td>
            <td class="Popup_NavBar_separator_cell"></td>
            <td class="Popup_NavBar_bg_logo_left"></td>
            <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><img src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
            <td class="Popup_NavBar_bg_logo_right"></td>
            <td class="Popup_NavBar_Popup_title_cell"><span>Audit Trail - Record History</span></td>
            <td class="Popup_NavBar_separator_cell"></td>
          </tr>
        </table>
      </td>
    </tr>

    <tr>
      <td>
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
          <tr>
            <td class="Popup_SeparatorBar_bg"></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_InfoBar">
          <tr>
            <td class="Popup_InfoBar_Icon_cell"><img src="../web/images/blank.gif" border="0" class="Popup_InfoBar_Icon_info"/></td>

            <td class="Popup_InfoBar_text_table">
              <table>
                <tr>
                  <td class="Popup_InfoBar_text" id="recordIdentifierText"></td>
                </tr>
                <tr>
                  <td class="Popup_InfoBar_text" id="excludeAuditColumnText"></td>
                </tr>
              </table>
            </td>
          </tr>

        </table>
      </td>
    </tr>
    

  </table>

  <table cellspacing="0" cellpadding="0" width="100%">

    <tr>
      <td>
        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">

            <tr>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
            </tr>

            <tr>
              <td colspan="6">
                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
                  <tr class="FieldGroup_TopMargin"></tr>
                  <tr>
                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif" alt=""/></td>
                    <td class="FieldGroupTitle">Primary Filters</td>
                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif" alt=""/></td>
                    <td class="FieldGroupContent"></td>

                  </tr>
                  <tr class="FieldGroup_BottomMargin"></tr>
                </table>
              </td>
            </tr>

                  <tr>
                    <td class="TitleCell"><span class="LabelText">Modification time from</span></td>
                    <td colspan="2" class="TextBox_btn_ContentCell" id="paramDateFrom_inp_td">
                        <div id="editDiscard">
                        <div id="paramDateFrom_inp">
                        <table border="0" cellspacing="0" cellpadding="0" summary="" class="">
                            <tr>
                                <td class="TextBox_ContentCell">
                                <table style="border: 0px; border-collapse: collapse;">                     
                                    <tr>
                                        <td style="padding-top: 0px;">
                                            <input type="text" id="paramDateFrom"
                                            class="dojoValidateValid TextBox_btn_OneCell_width"
                                            required="false" value="" maxlength="10" name="inpDateFrom"
                                            onkeyup="autoCompleteDate(this);"
                                            onchange="validateDateTextBox(this.id);logChanges(this);return true;"
                                            onblur="expandDateYear(this.id);" displayformat="xx" saveformat="yy"/>
                                        </td>
                                    </tr>
                                </table>
                                <span class="TextBox_MsgContainer_span" style="display: none;" id="paramDateFrominvalidSpan">
                                <table class="TextBox_MsgContainer_table">
                                    <tr class="TextBox_MsgContainer_tr">                        
                                        <td class="TextBox_MsgContainer_td">
                                            <div class="TextBox_MsgContainer_div"></div>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="invalid">
                                            <div class="TextBox_MsgContainer_div2" id="paramDateFrominvalidSpanText">* The value entered is not valid.</div>
                                        </td>
                                    </tr>
                                </table>
                                </span><span class="TextBox_MsgContainer_span" style="display: none;" id="paramDateFrommissingSpan">                        
                                <table class="TextBox_MsgContainer_table">
                                    <tr class="TextBox_MsgContainer_tr">
                                        <td class="TextBox_MsgContainer_td">
                                            <div class="TextBox_MsgContainer_div"></div>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="missing">
                                            <div class="TextBox_MsgContainer_div2" id="paramDateFrommissingSpanText">* This value is required.</div>
                                        </td>
                                    </tr>
                                </table>                        
                                </span><span class="TextBox_MsgContainer_span" style="display: none;" id="paramDateFromrangeSpan">
                                <table class="TextBox_MsgContainer_table">
                                    <tr class="TextBox_MsgContainer_tr">
                                        <td class="TextBox_MsgContainer_td">
                                            <div class="TextBox_MsgContainer_div"></div>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="range">
                                        <div class="TextBox_MsgContainer_div2"
                                            id="paramDateFromrangeSpanText">* This value is out of range.</div>
                                        </td>                       
                                    </tr>
                                </table>
                                </span></td>
                                <td class="FieldButton_ContentCell">
                                    <a class="FieldButtonLink"
                                        href="#"
                                        onfocus="setWindowElementFocus(this); window.status='Date of First Modification'; return true;"
                                        onblur="window.status=''; return true;"
                                        onkeypress="this.className='FieldButtonLink_active'; return true;"
                                        onkeyup="this.className='FieldButtonLink_focus'; return true;"
                                        onclick="showCalendar('frmAudit.inpDateFrom', document.frmAudit.inpDateFrom.value, false);return false;">
                                    <table class="FieldButton"
                                        onmousedown="this.className='FieldButton_active'; return true;"
                                        onmouseup="this.className='FieldButton'; return true;"
                                        onmouseover="this.className='FieldButton_hover'; window.status='Date of First Modification'; return true;"
                                        onmouseout="this.className='FieldButton'; window.status=''; return true;"
                                        id="paramDateFromlinkCalendar">
                                        <tr>
                                            <td class="FieldButton_bg">
                                                <img alt="Date of First Modification" class="FieldButton_Icon FieldButton_Icon_Calendar"
                                                title="Date of First Modification" src="../web/images/blank.gif" border="0"
                                                id="buttonCalendar"/>
                                            </td>
                                        </tr>
                                    </table>
                                    </a>
                                </td>
                            </tr>
                        </table>
                        </div>
                        </div>
                        </td>       
			         
                    <td class="TitleCell"><span class="LabelText">Modification time to</span></td>
                    <td colspan="3" class="TextBox_btn_ContentCell" id="paramDateTo_inp_td">
                        <div id="editDiscard">
                        <div id="paramDateTo_inp">
                        <table border="0" cellspacing="0" cellpadding="0" summary="" class="">
                            <tr>
                                <td class="TextBox_ContentCell">
                                <table style="border: 0px; border-collapse: collapse;">                     
                                    <tr>
                                        <td style="padding-top: 0px;">
                                            <input type="text" id="paramDateTo"
                                                class="dojoValidateValid TextBox_btn_OneCell_width"
                                                required="false" value="" maxlength="10" name="inpDateTo"
                                                onkeyup="autoCompleteDate(this);"
                                                onchange="validateDateTextBox(this.id);logChanges(this);return true;"
                                                onblur="expandDateYear(this.id);" displayformat="xx" saveformat="yy"/>
                                            </td>
                                    </tr>
                                </table>
                                <span class="TextBox_MsgContainer_span" style="display: none;" id="paramDateToinvalidSpan">
                                <table class="TextBox_MsgContainer_table">
                                    <tr class="TextBox_MsgContainer_tr">                        
                                        <td class="TextBox_MsgContainer_td">
                                            <div class="TextBox_MsgContainer_div"></div>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="invalid">
                                            <div class="TextBox_MsgContainer_div2" id="paramDateToinvalidSpanText">* The value entered is not valid.</div>
                                        </td>
                                    </tr>
                                </table>
                                </span> <span class="TextBox_MsgContainer_span" style="display: none;" id="paramDateTomissingSpan">                     
                                <table class="TextBox_MsgContainer_table">
                                    <tr class="TextBox_MsgContainer_tr">
                                        <td class="TextBox_MsgContainer_td">
                                            <div class="TextBox_MsgContainer_div"></div>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="missing">
                                            <div class="TextBox_MsgContainer_div2" id="paramDateTomissingSpanText">* This value is required.</div>
                                        </td>
                                    </tr>
                                </table>                        
                                </span> <span class="TextBox_MsgContainer_span" style="display: none;" id="paramDateTorangeSpan">
                                <table class="TextBox_MsgContainer_table">
                                    <tr class="TextBox_MsgContainer_tr">
                                        <td class="TextBox_MsgContainer_td">
                                            <div class="TextBox_MsgContainer_div"></div>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" class="range">
                                            <div class="TextBox_MsgContainer_div2" id="paramDateTorangeSpanText">* This value is out of range.</div>
                                        </td>                       
                                    </tr>
                                </table>
                                </span></td>
                                <td class="FieldButton_ContentCell">
                                    <a class="FieldButtonLink"
                                        href="#"
                                        onfocus="setWindowElementFocus(this); window.status='Date of latest modification'; return true;"
                                        onblur="window.status=''; return true;"
                                        onkeypress="this.className='FieldButtonLink_active'; return true;"
                                        onkeyup="this.className='FieldButtonLink_focus'; return true;"
                                        onclick="showCalendar('frmAudit.inpDateTo', document.frmAudit.inpDateTo.value, false);return false;">
                                        <table class="FieldButton"
                                            onmousedown="this.className='FieldButton_active'; return true;"
                                            onmouseup="this.className='FieldButton'; return true;"
                                            onmouseover="this.className='FieldButton_hover'; window.status='Date of latest modification'; return true;"
                                            onmouseout="this.className='FieldButton'; window.status=''; return true;"
                                            id="paramDateTolinkCalendar">
                                            <tr>
                                                <td class="FieldButton_bg">
                                                    <img alt="Date of latest modification" class="FieldButton_Icon FieldButton_Icon_Calendar"
                                                    title="Date of latest modification" src="../web/images/blank.gif" border="0"
                                                    id="buttonCalendar"/>
                                                </td>
                                            </tr>
                                        </table>
                                    </a>
                                </td>
                            </tr>
                        </table>
                        </div>
                        </div>
                    </td>
			         
			       </tr>
			       <tr>
                     <td class="TitleCell"><span class="LabelText">User</span></td>
                     <td colspan="2" class="Combo_ContentCell">
                       <select class="Combo Combo_TwoCells_width" name="inpUser" id="reportAD_User_ID_S">
                         <option value=""></option>
                         <div id="reportAD_User_ID"></div>
                       </select>
                     </td>
			       
                     <td class="TitleCell"><span class="LabelText">Field</span></td>
                     <td colspan="2" class="Combo_ContentCell">
                       <select class="Combo Combo_TwoCells_width" name="inpField" id="reportAD_Field_ID_S">
                         <option value=""></option>
                         <div id="reportAD_Field_ID"></div>
                       </select>
                     </td>
			       </tr>

            <tr>
              <td></td>
              <td class="Button_LeftAlign_ContentCell">
                <div>
                  <button type="button" 
                    id="buttonSearch" 
                    class="ButtonLink" 
                    onclick="setFilters();return false;" 
                    onfocus="buttonEvent('onfocus', this); window.status='Search'; return true;" 
                    onblur="buttonEvent('onblur', this);" 
                    onkeyup="buttonEvent('onkeyup', this);" 
                    onkeydown="buttonEvent('onkeydown', this);" 
                    onkeypress="buttonEvent('onkeypress', this);" 
                    onmouseup="buttonEvent('onmouseup', this);" 
                    onmousedown="buttonEvent('onmousedown', this);" 
                    onmouseover="buttonEvent('onmouseover', this); window.status='Search'; return true;" 
                    onmouseout="buttonEvent('onmouseout', this);">
                    <table class="Button">
                      <tr>
                        <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border="0" /></td>
                        <td class="Button_text Button_width">Search</td>
                        <td class="Button_right"></td>
                      </tr>
                    </table>
                  </button>
                </div>
              </td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
            </tr>
          </table>
        </div>
      </td>
    </tr>

    <tr>
      <td>
        <div class="Popup_ContentPane_Client" style="overflow: hidden; height: 0px;" id="client_middle">
          <table summary="" id="sectionDetail">
            <tr>
              <td>
                <table cellspacing="0" cellpadding="0" width="10px" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;" id="grid_sample">
                  <tr class="DataGrid_Body_Row" id="grid_sample_header">
                    <th width="10px" class="DataGrid_Header_Cell">DataGrid</th>
                  </tr>
                  <tr class="DataGrid_Body_Row DataGrid_Body_Row_1" id="grid_sample_row">
                    <td class="DataGrid_Body_Cell">Loading...</td>
                  </tr>
                </table>
                <table cellspacing="0" cellpadding="0" width="0px" height="0px" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><input type="text" class="DataGrid_Table_Dummy_Input" id="grid_table_dummy_input"></input></td>
                  </tr>
                </table>

                <table width="100%" cellspacing="0" cellpadding="0" border="0" class="Main_Client_TableRelation" id="grid_table">
                  <tr>
                    <td class="DataGrid_Popup_text_container" style="text-align:left">
                      <div id="grid_toptext">
                        <span class="DataGrid_Popup_text_bookmark"><a class="LabelLink_noicon" href="AuditTrail.html?Command=POPUP_DELETED&inpRecordId=xx&inpTabId=yy&inpTableId=zz" id="paramLinkDeleted">View deleted records</a></span>
                      </div>
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <div id="grid" dojotype="openbravo.widget.DataGrid"
                        structureurl="../businessUtility/AuditTrail.html?Command=STRUCTURE_HISTORY"
                        dataurl="../businessUtility/AuditTrail.html?Command=DATA_HISTORY"
                        updatesurl="../businessUtility/AuditTrail.html?Command=DATA_HISTORY"
                        calculatenumrows="true" editable="false" sortable="false"
                        deleteable="false" oninvalidvalue="alert" onscroll="updateHeader"
                        ongridload="onGridLoadDo" buffersize="3.0" showlinenumbers="true"
                        offset="0" sortcols="1" sortdirs="DESC" defaultrow="0"
                        maxwidth="99%" percentagewidthrelativetoid="client_middle"
                        multiplerowselection="false"
                        preventcache="true" usecache="true" cachecontent="false">
                      </div>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </div>
      </td>
    </tr>
    <tr>
      <td>
        <div class="Popup_ContentPane_Client" style="overflow: auto; padding-bottom: 5px;" id="client_bottom">
          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">

            <tr>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
              <td class="TableEdition_OneCell_width"></td>
            </tr>
            <tr>
              <td></td>
              <td></td>
              <td class="Button_RightAlign_ContentCell">
                <div>
                  <button type="button" 
                    id="buttonClose" 
                    class="ButtonLink" 
                    onclick="closePage();return false;" 
                    onfocus="buttonEvent('onfocus', this); window.status='Accept'; return true;" 
                    onblur="buttonEvent('onblur', this);" 
                    onkeyup="buttonEvent('onkeyup', this);" 
                    onkeydown="buttonEvent('onkeydown', this);" 
                    onkeypress="buttonEvent('onkeypress', this);" 
                    onmouseup="buttonEvent('onmouseup', this);" 
                    onmousedown="buttonEvent('onmousedown', this);" 
                    onmouseover="buttonEvent('onmouseover', this); window.status='Accept'; return true;" 
                    onmouseout="buttonEvent('onmouseout', this);">
                    <table class="Button">
                      <tr>
                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Close" title="Close" src="../../../../../web/images/blank.gif" border="0" /></td>
                        <td class="Button_text Button_width">Close</td>
                        <td class="Button_right"></td>
                      </tr>
                    </table>
                  </button>
                </div>
              </td>

              <td></td>
              <td></td>
              <td></td>
            </tr>
          </table>
        </div>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
